/* eslint-disable prettier/prettier */
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const CONSUMER: AppRouteRecordRaw = {
  path: '/consumer',
  name: 'consumer',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.consumer',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    {
      path: 'list_secret', // The midline path complies with SEO specifications
      name: 'ListSecret',
      component: () => import('@/views/consumer/secret/index.vue'),
      meta: {
        locale: 'menu.list.searchConsumer',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default CONSUMER;
